package cn.south.campus.admin.campus.mapper;

import cn.south.campus.admin.campus.model.entity.Goods;
import cn.south.campus.admin.campus.model.req.GoodsReq;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *
 * </p>
 *
 * @author chow
 * @since 2024/11/14 9:02
 */
public interface GoodsMapper extends BaseMapper<Goods> {

    IPage<Goods> pageQuery(PageDTO<Goods> page, @Param("query") GoodsReq req);

    Goods getById(Long id);
}
